package core.communication.message;

import core.database.ElectionStatus;

public class ElectionStatusMessage extends Message {
	private static final long serialVersionUID = -7018125752629179923L;

	private Long electionId;
	private ElectionStatus status;
	private String locatorURI;

	public ElectionStatusMessage(Long electionId, ElectionStatus status, String locatorURI) {
		super();
		setPriority(MessagePriority.NORMAL);
		setMessageType(MessageType.ElectionStatus);
		setDirection(Direction.UP);
		this.electionId = electionId;
		this.status = status;
		this.locatorURI = locatorURI;
	}

	public Long getElectionId() {
		return electionId;
	}

	public ElectionStatus getStatus() {
		return status;
	}

	public String getLocatorURI() {
		return locatorURI;
	}
}
